package com.lyf.scm.plan.domain.remote.nateWork;

import com.lyf.scm.plan.domain.remote.nateWork.dto.SalesNetworkAnalysisDTO;
import com.lyf.scm.plan.domain.remote.nateWork.dto.SearchSourceToBReturnDTO;
import com.lyf.scm.plan.domain.remote.nateWork.dto.SearchSourceToCQueryDTO;
import com.rome.arch.core.clientobject.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * description:
 *
 * @author: haodong
 * @data: 2020/10/7 16:55
 */
@FeignClient(name = "SCM-NETWORK-SERVICE")
public interface NateWorkRemote {

    /**
     * TOB寻仓
     */
    @PostMapping("/api/v1/route/source")
    Response<List<SearchSourceToBReturnDTO>> searchToBSource(@RequestBody List<String> storeCodeList);

    /**
     * TOC寻仓
     * @param queryToCList
     * @return
     */
    @PostMapping("/api/v1/outbound/analyze/warehouse")
    Response<List<SearchSourceToCQueryDTO>> searchToCSource(@RequestBody List<SearchSourceToCQueryDTO> queryToCList);

    @PostMapping("api/v1/outbound/analyze/queryOutBoundByWarehouse")
    Response<List<SalesNetworkAnalysisDTO>> queryOutBoundByWarehous(@RequestBody List<String> warehouseList);
}
